Skip to content
Version: v2.0
On this page

Plugin Compatibility (v2.x)

This page defines how plugin compatibility is preserved across simply-xp v2 releases.

  • Existing plugin required fields (name, initialize) are stable in v2.x.
  • Existing XPClient fields used by plugins remain available in v2.x.
  • registerPlugins() remains awaitable (Promise<void>) and keeps isolated plugin failure handling.
  • Existing event callback names and semantics remain stable in v2.x.
  • XpEvents.add(), Database.namespace(), Plugin.destroy() and unregisterPlugins() are stable in v2.x.
  • New optional fields can be added to the Plugin type.
  • New optional runtime helpers can be introduced for plugin tooling.
  • New optional callbacks and hooks can be added.

The following require a major release:

  • Removing or renaming existing plugin required fields.
  • Removing or renaming existing XPClient fields.
  • Breaking requiredVersions matching semantics.
  • Changing plugin registration from isolated failures to fail-fast behavior.

For best v2 compatibility, prefer:

  • requiredVersions: ["2"] for plugins that support all v2 releases.
  • requiredVersions: ["2.0"] for plugins tied to v2.0.x behavior.
  • Exact versions only when strictly required.